import axios from 'axios';
import { req } from './axiosFun';

/**
 * 评论管理
 **/
// 添加厕所
export const ToiletAdd = (params) => { return req("post", "/toilet/add", params) };
// 分页查询厕所列表
export const ToiletList = (params) => { return req("get", "/toilet/list", params) };
// 根据ID删除厕所
export const ToiletDelete = (params) => { return axios.delete("/toilet/" + params ).then(res => res.data) };
// 根据ID查询厕所
export const ToiletFind = (params) => { return req("get", "/toilet/{id}", params) };
// 根据ID修改厕所
export const ToiletUpdate = (params) => { return req("put", "/toilet/{id}", params) };
//修改厕所状态
export const ToiletLock = (params) => { return req("get","/toilet/updateCheckStatus/"+params.userId+"/"+params.data.checkStatus) };
